﻿
using System.Collections.Generic;
using Foothill.Model;

namespace Foothill.DataAccess.Interface
{
    public interface IAdRepo
    {
        int InsertNewForSaleAd(ForSaleAd newAd);

        bool UpdateForSaleAdEditKey(int adId, string editkey);

        ForSaleAd GetForSaleAdById(int id);

        ForSaleAd GetForSaleAdByIdAndEditKey(int postId, string editkey);
        
        bool UpdatePrice(int postId, int newPrice);

        bool SetPostStatusId(int postId, AdStatusLookup statusId);

        IList<ForSaleAd> GetPostsByUser(int userAccountId);

        IList<ForSaleAd> GetUserSavedPosts(int userAccountId);

        void IncreaseNumberOfTimeClicked(int postId);

        void RemovePostFromSavedList(int userId, int postId);

        IList<int> GetIdListForAdPostedByUser(int userAccountId);
    }
}
